package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.SalesReturn;
import com.woniu.supermarket.vo.SalesReturnVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SalesReturnMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SalesReturn record);

    SalesReturn selectByPrimaryKey(Integer id);

    List<SalesReturn> selectAll();

    int updateByPrimaryKey(SalesReturn record);

    List<SalesReturnVo> selectByCons(@Param(value = "code")String saleReturnCode);

    void updatePriceByPrimaryKey(SalesReturnVo salesReturn);
}